extends ./home_base

block panel
  .panel
    .panel-hd <span class="ico-profile"></span> 基本信息
    .panel-bd.user-info.clearfix
      .photo.float-l.interval-r: img(src=user.avatar_url || '/images/photo.png' width="100")
      ul.user-info-info 
        li
          span.ico-user 
          span= user.username
        if user.home
          li 
            span.ico-home 
            a(href=user.home target="_blank")= user.home
        li
          span.ico-email 
          span= user.email
        if user.github
          li 
            span.ico-github 
            a(href=user.github target="_blank")= user.github

  .panel
    .panel-hd <span class="ico-list"></span> 创建的话题
    .panel-bd.list-bd
      ul.list.list-striped
        if topics.length
          +topic_list(topics)
          li.more: a(href='/user/'+ user.username + '/topic') 更多……
        else 
          li.more '还没有发表过主题'
  .panel
    .panel-hd <span class="ico-reply"></span> 最近的回复
    .panel-bd.list-bd
      ul.list.list-striped
        if replys.length
          +reply_list(replys)
          li.more: a(href='/user/'+ user.username + '/reply') 更多……
        else 
          li.more 还没有回复过主题